package com.jason.quartzdemo.job;

import com.jason.quartzdemo.utils.DateUtils;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Random;

@Slf4j
public class Job_A implements Job {



    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        log.info("------mytask--A1-----;执行时间:{},生成随机数:{}", DateUtils.getDate(),new Random().nextLong());
    }
}
